<form class="layui-form modal-form-box" action="__SELF__" data-auto="true" method="post">

    <div class="layui-form-item">
        <label class="layui-form-label">选择分类</label>
        <div class="layui-input-block">
            <select name="pid" lay-ignore class="layui-input">
                <option value="0">顶级分类</option>
                {volist name='cate' id='val'}
                <option value="{$val.id|default=''}" {eq name='val.id' value='$Think.get.id'}selected{/eq}>{$val.name|default=''}</option>
                {/volist}
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">栏目名称</label>
        <div class="layui-input-block">
            <input type="text" name="name" placeholder="请输入栏目名称" required title="请输入栏目名称" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">栏目链接</label>
        <div class="layui-input-block">
            <input type="text" name="link" placeholder="请输入栏目链接" class="layui-input">
        </div>
    </div>

<!--    <div class="layui-form-item">
        <label class="layui-form-label">图标</label>
        <div class="layui-input-block">
            <input type="hidden" name="icon" class="layui-input uploadOneImage">
        </div>
    </div>-->

    <div class="layui-form-item text-center">
        <button class="layui-btn">保存数据</button>
        <button class="layui-btn layui-btn-primary" type="button" data-close>取消编辑</button>
    </div>
</form>
<!--<script>
    $('form [name="icon"]').uploadOneImage();
</script>-->